package com.itheima.aspect;

//切面类(通知类/增强类)，抽取共性代码放到当前类
public class Aspect {
    public void beforeMethod(){
        //要增强的方法
        System.out.println("执行前置增强方法...");
    }
    public void afterReturning(){
        System.out.println("执行后置增强方法...");
    }
    public void afterThrowing(){
        System.out.println("执行异常通知方法...");
    }
    public void after(){
        System.out.println("执行最终通知方法...");
    }

    public void aroundMethod(){
        System.out.println("环绕通知...");
    }
}
